package com.umeox.moto.mqtt.request;

public class MqttSubscribeRequest extends PersistentRequest {
    public String topic;
    public boolean isSubscribe;

    private MqttSubscribeRequest(String topic, boolean isSubscribe) {
        this.topic = topic;
        this.isSubscribe = isSubscribe;
    }

    public static MqttSubscribeRequest createRequest(String topic, boolean isSubscribe) {
        return new MqttSubscribeRequest(topic, isSubscribe);
    }
}